package c.h.b.c.a;

import c.f.c.a.d;
import c.h.a.f0.i;
import c.h.a.f0.j;
import c.h.b.d.a.f;
import com.huawei.hms.iap.IapApiException;
import com.huawei.hms.iap.entity.OrderStatusCode;
import java.util.Objects;

/* compiled from: lambda */
public final /* synthetic */ class e implements d {
    public final /* synthetic */ f a;

    public /* synthetic */ e(f fVar) {
        this.a = fVar;
    }

    public final void onFailure(Exception exception) {
        f fVar = this.a;
        if (!(exception instanceof IapApiException)) {
            ((i) fVar).a();
        } else if (((IapApiException) exception).getStatusCode() == OrderStatusCode.ORDER_PRODUCT_OWNED) {
            Objects.requireNonNull((i) fVar);
            j.d.g();
        } else {
            ((i) fVar).a();
        }
    }
}
